//
//  XMGDayItem.m
//  码哥课堂
//
//  Created by yz on 2016/12/3.
//  Copyright © 2016年 yz. All rights reserved.
//

#import "XMGDayItem.h"

@implementation XMGDayItem
- (void)setDate:(NSString *)date
{
    _date = date;
    
    NSDateFormatter *fmt = [[NSDateFormatter alloc] init];
    fmt.dateFormat = @"yyyy-MM-dd";
    NSDate *d = [fmt dateFromString:date];
    fmt.dateFormat = @"MM/dd";
    _dateStr = [fmt stringFromDate:d];
    
}
@end
